class CreateImages < ActiveRecord::Migration
  
   def self.up
      create_table :images do |t|
        t.integer :customization_id
        t.string :name  
        t.string :filename
        t.string :content_type
        t.integer :size
        t.binary :binary_data
        t.timestamps
    end
    
      add_index("images", "customization_id")
  end
  
    def self.down
      drop_table :images
    end
end
